home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Maplin Electronics Catalogue 2001 Winter
/
Maplins Catalogue Winter 2001.iso
/
CDCopy.bat
< prev
next >
Wrap
DOS Batch File
|
2001-12-20
|
2KB
|
100 lines
@echo Off
ECHO ****** CD to Hard Drive Copy Routine ******
ECHO To what drive should the CD to be copied to
Choice /C:cdefgh /n C, D, E, F, G, H
if errorlevel 6 goto HDrive
if errorlevel 5 goto GDrive
if errorlevel 4 goto FDrive
if errorlevel 3 goto EDrive
if errorlevel 2 goto DDrive
if errorlevel 1 goto CDrive
exit
:CDrive
Set T1="C:"
Goto FromCopy
:DDrive
Set T1="D:"
Goto FromCopy
:EDrive
Set T1="E:"
Goto FromCopy
:fDrive
Set T1="F:"
Goto FromCopy
:gDrive
Set T1="G:"
Goto FromCopy
:hDrive
Set T1="H:"
Goto FromCopy
:FromCopy
ECHO What drive is the CD in
Choice /C:cdefgh /n C, D, E, F, G, H
if errorlevel 6 goto FHDrive
if errorlevel 5 goto fGDrive
if errorlevel 4 goto FFDrive
if errorlevel 3 goto FEDrive
if errorlevel 2 goto FDDrive
if errorlevel 1 goto FCDrive
exit
:FCDrive
Set F1="C:"
Goto StartCopy
:FDDrive
Set F1=D:
Goto StartCopy
:FEDrive
Set F1="E:"
Goto StartCopy
:FfDrive
Set F1="F:"
Goto StartCopy
:FgDrive
Set F1="G:"
Goto StartCopy
:FhDrive
Set F1="H:"
Goto StartCopy
:StartCopy
%F1%
cd\
xcopy *.ico /C %T1%\maplin\
xcopy CDROM.htm /C %T1%\maplin\
xcopy TopNav.htm /C %T1%\maplin\
xcopy temp\Home.htm /C %T1%\maplin\
xcopy temp\LeftNav.htm /C %T1%\maplin\
xcopy temp\BlackBar.htm /C %T1%\maplin\
xcopy CodeFind\*.* /S /C %T1%\maplin\CodeFind\
xcopy JScript\*.* /S /C %T1%\maplin\JScript\
xcopy Pictures\ /S /C %T1%\maplin\Pictures\
xcopy Thumbs\ /S /C %T1%\maplin\Thumbs\
xcopy ProdFind\*.* /S /C %T1%\maplin\ProdFind\
xcopy SemiFind\*.* /S /C %T1%\maplin\SemiFind\
xcopy Stores\*.* /S /C %T1%\maplin\Stores\
xcopy Products\*.* /S /C %T1%\maplin\Products\
xcopy CodeFind\*.* /S /C %T1%\maplin\CodeFind\
xcopy WordFind\*.* /S /C %T1%\maplin\WordFind\
xcopy Images\*.* /S /C %T1%\maplin\Images\
xcopy Help\*.* /S /C %T1%\maplin\Help\
xcopy temp\000Pdf.htm /C %T1%\maplin\Help\pdf\
cls
Exit